package ysm.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import ysm.entity.Profession;

@Component
@Mapper
public interface ProfessionMapper {
	
	List<Profession> loadAllProfession();
	
    int deleteByPrimaryKey(Integer id);

    int insert(Profession record);

    int insertSelective(Profession record);

    Profession selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Profession record);

    int updateByPrimaryKey(Profession record);
    
    Profession selectByProfessionname(String professionname);
}